<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><strong>Application</strong></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><a href="../classes/Button.html">Button</a></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>Application</code></h1>
<p>Application
单例类，使用ca.sharedApplication() 获取</p>
<p>

</p>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#Application:getRootWindow">Application:getRootWindow ()</a></td>
	<td class="summary">获取根窗口</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getAnimationInterval">Application:getAnimationInterval ()</a></td>
	<td class="summary">获取FPS</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setAnimationInterval">Application:setAnimationInterval (fpsInterval)</a></td>
	<td class="summary">设置FPS</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:isDisplayStats">Application:isDisplayStats ()</a></td>
	<td class="summary">是否显示fps等信息</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setDisplayStats">Application:setDisplayStats (isDisplay)</a></td>
	<td class="summary">设置显示fps等信息</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getSecondsPerFrame">Application:getSecondsPerFrame (seconds)</a></td>
	<td class="summary">获取一帧时间间隔</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setNextDeltaTimeZero">Application:setNextDeltaTimeZero (bzero)</a></td>
	<td class="summary">设置下一帧DeltaTime从0开始</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:isNextDeltaTimeZero">Application:isNextDeltaTimeZero ()</a></td>
	<td class="summary">下一帧DeltaTime是否从0开始</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:isPaused">Application:isPaused ()</a></td>
	<td class="summary">是否已暂停</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getTotalFrames">Application:getTotalFrames ()</a></td>
	<td class="summary">获取总帧数</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:reshapeProjection">Application:reshapeProjection (size)</a></td>
	<td class="summary">reshape projection matrix when canvas has been change</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setStatusBarStyle">Application:setStatusBarStyle (style)</a></td>
	<td class="summary">设置状态条风格</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getStatusBarStyle">Application:getStatusBarStyle ()</a></td>
	<td class="summary">获取状态条风格</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:isStatusBarHidden">Application:isStatusBarHidden ()</a></td>
	<td class="summary">获取状态条是否隐藏</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setViewport">Application:setViewport ()</a></td>
	<td class="summary">设置opengl viewport</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setNotificationView">Application:setNotificationView (view)</a></td>
	<td class="summary">回调view::visit进行渲染
This object will be visited after the main scene is visited.</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getNotificationView">Application:getNotificationView ()</a></td>
	<td class="summary">

</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getWinSize">Application:getWinSize ()</a></td>
	<td class="summary">获取窗口大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getVisibleSize">Application:getVisibleSize ()</a></td>
	<td class="summary">获取可见大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getVisibleOrigin">Application:getVisibleOrigin ()</a></td>
	<td class="summary">获取可见区域原点</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getZEye">Application:getZEye (zeye)</a></td>
	<td class="summary">获取opengl zeye的值</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:runWindow">Application:runWindow ()</a></td>
	<td class="summary">运行某窗口</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:stop">Application:stop ()</a></td>
	<td class="summary">结束程序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:pause">Application:pause ()</a></td>
	<td class="summary">暂停程序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:resume">Application:resume ()</a></td>
	<td class="summary">恢复程序</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:stopAnimation">Application:stopAnimation ()</a></td>
	<td class="summary">停止动画</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:startAnimation">Application:startAnimation ()</a></td>
	<td class="summary">开始动画</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:updateDraw">Application:updateDraw ()</a></td>
	<td class="summary">重新绘制</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:run">Application:run ()</a></td>
	<td class="summary">运行渲染循环</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:purgeCachedData">Application:purgeCachedData ()</a></td>
	<td class="summary">清除缓存数据</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setDefaultValues">Application:setDefaultValues ()</a></td>
	<td class="summary">sets the default values based on the CCConfiguration info</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setGLDefaultValues">Application:setGLDefaultValues ()</a></td>
	<td class="summary">sets the OpenGL default values</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setAlphaBlending">Application:setAlphaBlending (bEnable)</a></td>
	<td class="summary">设置是否开启alpha混合</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:setDepthTest">Application:setDepthTest (bEnable)</a></td>
	<td class="summary">设置是否开启深度测试</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:isDrawing">Application:isDrawing ()</a></td>
	<td class="summary">是否正在渲染</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getCurrentNumberOfDraws">Application:getCurrentNumberOfDraws ()</a></td>
	<td class="summary">获取渲染数量</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getKeypadDispatcher">Application:getKeypadDispatcher ()</a></td>
	<td class="summary">获取按键调度</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getTargetPlatform">Application:getTargetPlatform (platformType)</a></td>
	<td class="summary">获取当前平台类型</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Application:getCurrentLanguage">Application:getCurrentLanguage (type)</a></td>
	<td class="summary">获取当前语言</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "Application:getRootWindow"></a>
    <strong>Application:getRootWindow ()</strong>
    </dt>
    <dd>
    获取根窗口



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/Window.html#">Window</a></span>
        rootWindow
    </ol>




</dd>
    <dt>
    <a name = "Application:getAnimationInterval"></a>
    <strong>Application:getAnimationInterval ()</strong>
    </dt>
    <dd>
    获取FPS



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">float</span></span>
        fpsInterval
    </ol>




</dd>
    <dt>
    <a name = "Application:setAnimationInterval"></a>
    <strong>Application:setAnimationInterval (fpsInterval)</strong>
    </dt>
    <dd>
    设置FPS


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">fpsInterval</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:isDisplayStats"></a>
    <strong>Application:isDisplayStats ()</strong>
    </dt>
    <dd>
    是否显示fps等信息



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isDisplay
    </ol>




</dd>
    <dt>
    <a name = "Application:setDisplayStats"></a>
    <strong>Application:setDisplayStats (isDisplay)</strong>
    </dt>
    <dd>
    设置显示fps等信息


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">isDisplay</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:getSecondsPerFrame"></a>
    <strong>Application:getSecondsPerFrame (seconds)</strong>
    </dt>
    <dd>
    获取一帧时间间隔


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">seconds</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:setNextDeltaTimeZero"></a>
    <strong>Application:setNextDeltaTimeZero (bzero)</strong>
    </dt>
    <dd>
    设置下一帧DeltaTime从0开始


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bzero</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:isNextDeltaTimeZero"></a>
    <strong>Application:isNextDeltaTimeZero ()</strong>
    </dt>
    <dd>
    下一帧DeltaTime是否从0开始



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        bzero
    </ol>




</dd>
    <dt>
    <a name = "Application:isPaused"></a>
    <strong>Application:isPaused ()</strong>
    </dt>
    <dd>
    是否已暂停



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isPaused
    </ol>




</dd>
    <dt>
    <a name = "Application:getTotalFrames"></a>
    <strong>Application:getTotalFrames ()</strong>
    </dt>
    <dd>
    获取总帧数



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">iut</span></span>
        count
    </ol>




</dd>
    <dt>
    <a name = "Application:reshapeProjection"></a>
    <strong>Application:reshapeProjection (size)</strong>
    </dt>
    <dd>
    reshape projection matrix when canvas has been change


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">size</span>
            <span class="types"><span class="type">Size</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:setStatusBarStyle"></a>
    <strong>Application:setStatusBarStyle (style)</strong>
    </dt>
    <dd>
    设置状态条风格


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">style</span>
            <span class="types"><span class="type">StatusBarStyle</span></span>
        CAStatusBarStyleDefault      = 0, Dark content, for use on light backgrounds
CAStatusBarStyleLightContent = 1, Light content, for use on dark backgrounds
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:getStatusBarStyle"></a>
    <strong>Application:getStatusBarStyle ()</strong>
    </dt>
    <dd>
    获取状态条风格



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">StatusBarStyle</span></span>
         style
CAStatusBarStyleDefault      = 0, Dark content, for use on light backgrounds
CAStatusBarStyleLightContent = 1, Light content, for use on dark backgrounds
    </ol>




</dd>
    <dt>
    <a name = "Application:isStatusBarHidden"></a>
    <strong>Application:isStatusBarHidden ()</strong>
    </dt>
    <dd>
    获取状态条是否隐藏



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        hidden
    </ol>




</dd>
    <dt>
    <a name = "Application:setViewport"></a>
    <strong>Application:setViewport ()</strong>
    </dt>
    <dd>
    设置opengl viewport







</dd>
    <dt>
    <a name = "Application:setNotificationView"></a>
    <strong>Application:setNotificationView (view)</strong>
    </dt>
    <dd>
    回调view::visit进行渲染
This object will be visited after the main scene is visited.


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">view</span>
            <span class="types"><a class="type" href="../classes/View.html#">View</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:getNotificationView"></a>
    <strong>Application:getNotificationView ()</strong>
    </dt>
    <dd>






    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/View.html#">View</a></span>
        view
    </ol>




</dd>
    <dt>
    <a name = "Application:getWinSize"></a>
    <strong>Application:getWinSize ()</strong>
    </dt>
    <dd>
    获取窗口大小



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        sz
    </ol>




</dd>
    <dt>
    <a name = "Application:getVisibleSize"></a>
    <strong>Application:getVisibleSize ()</strong>
    </dt>
    <dd>
    获取可见大小



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Size</span></span>
        sz
    </ol>




</dd>
    <dt>
    <a name = "Application:getVisibleOrigin"></a>
    <strong>Application:getVisibleOrigin ()</strong>
    </dt>
    <dd>
    获取可见区域原点



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">Point</span></span>
        point
    </ol>




</dd>
    <dt>
    <a name = "Application:getZEye"></a>
    <strong>Application:getZEye (zeye)</strong>
    </dt>
    <dd>
    获取opengl zeye的值


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">zeye</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:runWindow"></a>
    <strong>Application:runWindow ()</strong>
    </dt>
    <dd>
    运行某窗口



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="../classes/Window.html#">Window</a></span>
        window
    </ol>




</dd>
    <dt>
    <a name = "Application:stop"></a>
    <strong>Application:stop ()</strong>
    </dt>
    <dd>
    结束程序







</dd>
    <dt>
    <a name = "Application:pause"></a>
    <strong>Application:pause ()</strong>
    </dt>
    <dd>
    暂停程序







</dd>
    <dt>
    <a name = "Application:resume"></a>
    <strong>Application:resume ()</strong>
    </dt>
    <dd>
    恢复程序







</dd>
    <dt>
    <a name = "Application:stopAnimation"></a>
    <strong>Application:stopAnimation ()</strong>
    </dt>
    <dd>
    停止动画







</dd>
    <dt>
    <a name = "Application:startAnimation"></a>
    <strong>Application:startAnimation ()</strong>
    </dt>
    <dd>
    开始动画







</dd>
    <dt>
    <a name = "Application:updateDraw"></a>
    <strong>Application:updateDraw ()</strong>
    </dt>
    <dd>
    重新绘制







</dd>
    <dt>
    <a name = "Application:run"></a>
    <strong>Application:run ()</strong>
    </dt>
    <dd>
    运行渲染循环







</dd>
    <dt>
    <a name = "Application:purgeCachedData"></a>
    <strong>Application:purgeCachedData ()</strong>
    </dt>
    <dd>
    清除缓存数据







</dd>
    <dt>
    <a name = "Application:setDefaultValues"></a>
    <strong>Application:setDefaultValues ()</strong>
    </dt>
    <dd>
    sets the default values based on the CCConfiguration info







</dd>
    <dt>
    <a name = "Application:setGLDefaultValues"></a>
    <strong>Application:setGLDefaultValues ()</strong>
    </dt>
    <dd>
    sets the OpenGL default values







</dd>
    <dt>
    <a name = "Application:setAlphaBlending"></a>
    <strong>Application:setAlphaBlending (bEnable)</strong>
    </dt>
    <dd>
    设置是否开启alpha混合


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:setDepthTest"></a>
    <strong>Application:setDepthTest (bEnable)</strong>
    </dt>
    <dd>
    设置是否开启深度测试


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bEnable</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:isDrawing"></a>
    <strong>Application:isDrawing ()</strong>
    </dt>
    <dd>
    是否正在渲染



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">bool</span></span>
        isDrawing
    </ol>




</dd>
    <dt>
    <a name = "Application:getCurrentNumberOfDraws"></a>
    <strong>Application:getCurrentNumberOfDraws ()</strong>
    </dt>
    <dd>
    获取渲染数量



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">int</span></span>
        number
    </ol>




</dd>
    <dt>
    <a name = "Application:getKeypadDispatcher"></a>
    <strong>Application:getKeypadDispatcher ()</strong>
    </dt>
    <dd>
    获取按键调度



    <h3>Returns:</h3>
    <ol>

           <span class="types"><span class="type">KeypadDispatcher</span></span>
        dispatcher
    </ol>




</dd>
    <dt>
    <a name = "Application:getTargetPlatform"></a>
    <strong>Application:getTargetPlatform (platformType)</strong>
    </dt>
    <dd>
    获取当前平台类型


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">platformType</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        返回值为 iOS,Android,Windows等
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Application:getCurrentLanguage"></a>
    <strong>Application:getCurrentLanguage (type)</strong>
    </dt>
    <dd>
    获取当前语言


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">type</span>
            <span class="types"><span class="type">LanguageType</span></span>



        </li>
    </ul>





</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
